
# coding: utf-8
# Copyright (c) 2024 Huawei Technologies Co., Ltd.
# openUBMC is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#         http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
from setuptools import setup

from bingo import __version__


def get_requires(filename):
    requirenments = []
    with open(filename, "rt") as req_file:
        for line in req_file.read().splitlines():
            if not line.strip().startswith("#"):
                requirenments.append(line)
    return requirenments

project_requirenments = get_requires("requirements.txt")

setup(
    name="openubmc-bingo",
    version=__version__,
    description="Tools provided by openubmc",
    long_description="build and code generate tools",
    long_description_content_type="text/markdown",
    install_requires=project_requirenments,
    url="https://openubmc.cn",
    packages=["bingo"],
    include_package_data=True,
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: Mulan Permissive Software License v2 (MulanPSL-2.0)",
        "Operating System :: OS Independent",
    ],
    entry_points={
        'console_scripts': [
            'bingo=bingo.bingo:run',
        ],
    },
)
